package com.csnf.service;

import com.csnf.dao.UserDao2;
import com.csnf.entity.User;
import com.csnf.util.MybatisUtil;

import java.util.List;

public class UserService {
    UserDao2 userDao2;

    public List<User> getUser(String uname){
        userDao2=MybatisUtil.init().getMapper(UserDao2.class);
        List<User> userList=userDao2.getUser(uname);
        MybatisUtil.close();
        return userList;
    }
}
